<template>
  <div id="date">
    <h1>{{price | priceFormat(1)}}</h1>
    <h1>{{price | priceFormat(3)}}</h1>
  </div>
</template>

<script>
export default {
  name: "Date",
  data(){
    return{
      price:100
    }
  },
  filters:{
    priceFormat(price,num){
      return "￥" + price.toFixed(num)
    }
  }
}
</script>

<style scoped>

</style>